package top.jybill.utils;

import top.jybill.exception.MyException;

public class CharCodeUtil {
  public static String getUTF8CharCode(String old, String charCode) {
    try {
      return new String(old.getBytes("ISO-8859-1"), charCode);
    } catch (Exception e) {
      throw new MyException("字符转换异常");
    }
  }
}
